<div class="card border-info m-3">
    <h5 class="card-header bg-info text-white">修改</h5>
    <div class="card-body">
        <h5 class="card-title">基础信息</h5>
        <div class="row mb-3">
            <div class="col-3">
                <ng-select
                        [(ngModel)]="formData.wmsHoseId"
                        [items]="hoseTypes"
                        [searchable]="true"
                        bindLabel="name"
                        bindValue="id"
                        placeholder="请选择仓库">
                </ng-select>
            </div>
            <div class="col-3">
                <input [(ngModel)]="formData.remark" class="form-control border-info" type="text" placeholder="请输入备注">
            </div>
        </div>
        <div class="row mb-3">
            <div class="col-3">
                <app-wms-select-goods   (saveOrder)="addGoods($event)"></app-wms-select-goods>
            </div>
        </div>
        <!--tables-->
        <app-wms-order-table [tableData]="tableData"></app-wms-order-table>
        <div class="row">
            <div class="col-md-6">
                <button type="button" (click)="doSaveOrder('BIAN_JI')" class="btn btn-primary btn-space">保存</button>
                <button type="button" (click)="doSaveOrder('DAI_RU_KU')" class="btn btn-primary btn-space">生成采购单</button>
                <button type="button" (click)="goList()" class="btn btn-outline-primary btn-space">返回</button>
            </div>

        </div>
    </div>
</div>

<span class="badge badge-info mr-3" *ngIf="errRes?.error?.timestamp !== null">response time: {{errRes?.error?.timestamp}}</span>
<div *ngIf="false">
    <p>{{errRes.error}}</p>
    <p>{{errRes.error?.code}}</p>
    <p>{{errRes.error?.description}}</p>
    <p>{{errRes.error?.theme}}</p>
    <p>{{errRes.error?.timestamp}}</p>
    <p>{{errRes.error?.detail?.RR?.duration}}</p>
    <p>{{errRes.error?.detail['WmsPurchaseOrderSelf.serNum']}}</p>
    <p>{{errRes.error?.detail['WmsPurchaseOrderSelf.serAudit']}}</p>
    <p>{{errRes.error?.detail['WmsPurchaseOrderSelf.serValid']}}</p>
    <p>{{errRes.error?.detail['WmsPurchaseOrderSelf.serValid2']}}</p>
    <p>{{errRes.headers}}</p>
    <p>{{errRes.message}}</p>
    <p>{{errRes.name}}</p>
    <p>{{errRes.ok}}</p>
    <p>{{errRes.status}}</p>
    <p>{{errRes.statusText}}</p>
    <p>{{errRes.url}}</p>
</div>
